<template>
  <van-tabbar v-model="active">
    <van-tabbar-item icon="wap-home-o">
      <router-link to="/Home" active-class="active">首页</router-link>
    </van-tabbar-item>
    <van-tabbar-item icon="shopping-cart-o">
      <router-link to="/ShoppingCart" active-class="active">购物车</router-link>
    </van-tabbar-item>
    <van-tabbar-item icon="search">
      <router-link to="/Classify" active-class="active">分类</router-link>
    </van-tabbar-item>
    <van-tabbar-item icon="user-circle-o">
      <router-link to="/myindex" active-class="active">我的</router-link>
    </van-tabbar-item>
  </van-tabbar>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style scoped>
.active {
  color:#FF0707;
  font-weight: 700;
}
</style>